package org.wyz.strategy_after;

public class RouteServiceFactory {
    public static RouteService getRouteService(RouteType routeType) {
        if (routeType == RouteType.Car) {
            return new CarService();
        } else if (routeType == org.wyz.strategy_after.RouteType.Bike) {
            return new BikeService();
        }
        return null;
    }
}
